/* 引入等级系统样式 */
@import "../../level.less";

/* 登录成功页面样式 */
.login-success-page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  font-family: "Microsoft YaHei", "SimSun", serif;
}

/* 背景图片 */
.background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.background-image image {
  width: 150%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: -50%;
  top: 0;
}

/* 背景遮罩 */
.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.3) 0%,
    rgba(118, 75, 162, 0.4) 50%,
    rgba(220, 53, 69, 0.3) 100%
  );
  z-index: 2;
}

/* 主要内容容器 */
.content-container {
  position: relative;
  z-index: 3;
  padding: 60rpx 40rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  box-sizing: border-box;
  /* 添加安全区域适配 */
  padding-top: calc(60rpx + env(safe-area-inset-top));
}

/* 成功图标区域 */
.success-icon-section {
  margin-top: 147rpx;
  margin-bottom: 60rpx;
  animation: fadeInDown 1s ease-out;
}

.success-icon-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.success-icon {
  width: 120rpx;
  height: 120rpx;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8rpx 32rpx rgba(255, 215, 0, 0.4);
  animation: successPulse 2s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.icon-text {
  font-size: 60rpx;
  animation: iconRotate 3s linear infinite;
}

.success-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ring {
  position: absolute;
  border: 3rpx solid rgba(255, 215, 0, 0.6);
  border-radius: 50%;
  animation: ringExpand 2s ease-out infinite;
}

.ring-1 {
  width: 160rpx;
  height: 160rpx;
  animation-delay: 0s;
}

.ring-2 {
  width: 200rpx;
  height: 200rpx;
  animation-delay: 0.3s;
}

.ring-3 {
  width: 240rpx;
  height: 240rpx;
  animation-delay: 0.6s;
}

/* 欢迎文字区域 */
.welcome-section {
  text-align: center;
  margin-bottom: 60rpx;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.welcome-title {
  margin-bottom: 20rpx;
}

.title-text {
  font-size: 48rpx;
  color: white;
  text-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

.title-highlight {
  font-size: 56rpx;
  color: #ffd700;
  text-shadow: 0 4rpx 8rpx rgba(255, 215, 0, 0.5);
  font-weight: bold;
  margin-left: 20rpx;
}

.welcome-subtitle {
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
}

/* 用户信息卡片 */
.user-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30rpx;
  padding: 40rpx;
  margin-bottom: 40rpx;
  box-shadow: 0 16rpx 48rpx rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10rpx);
  animation: slideInUp 1s ease-out 0.6s both;
  width: 100%;
  max-width: 600rpx;
  position: relative;
}

/* 编辑资料按钮 */
.edit-profile-btn {
  position: absolute;
  top: 20rpx;
  right: 20rpx;
  width: 60rpx;
  height: 60rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  border-radius: 50%;
  border: 2rpx solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4rpx 16rpx rgba(102, 126, 234, 0.3),
    0 0 20rpx rgba(240, 147, 251, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
  cursor: pointer;
  animation: editButtonShimmer 3s ease-in-out infinite;
}

.edit-profile-btn:active {
  transform: scale(0.9);
  box-shadow: 0 2rpx 8rpx rgba(102, 126, 234, 0.4);
}

.edit-profile-btn:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 50%, #e085f0 100%);
  transform: translateY(-2rpx) scale(1.05);
  box-shadow: 
    0 6rpx 20rpx rgba(102, 126, 234, 0.4),
    0 0 30rpx rgba(240, 147, 251, 0.4);
  border-color: rgba(255, 255, 255, 0.6);
}

.edit-icon {
  font-size: 28rpx;
  color: white;
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.edit-profile-btn:hover .edit-icon {
  transform: rotate(15deg) scale(1.1);
  text-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.4);
}

/* 编辑按钮动画 */
@keyframes editButtonShimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 30rpx;
}

.user-avatar {
  position: relative;
  margin-right: 30rpx;
}

.user-avatar image {
  width: 100rpx;
  height: 100rpx;
  border-radius: 50%;
  border: 4rpx solid #ffd700;
}

.avatar-border {
  position: absolute;
  top: -8rpx;
  left: -8rpx;
  right: -8rpx;
  bottom: -8rpx;
  border: 3rpx solid rgba(255, 215, 0, 0.3);
  border-radius: 50%;
  animation: avatarGlow 2s ease-in-out infinite;
}

.user-info {
  flex: 1;
}

.user-name {
  font-size: 36rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 10rpx;
}



.card-content {
  display: flex;
  flex-direction: column;
  gap: 20rpx;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15rpx 0;
  border-bottom: 2rpx solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: 28rpx;
  color: #6c757d;
}

.info-value {
  font-size: 28rpx;
  color: #2C3E50;
  font-weight: 500;
}

/* 平台统计 */
.stats-section {
  margin-bottom: 60rpx;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.stats-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 25rpx;
  padding: 30rpx;
  box-shadow: 0 12rpx 36rpx rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10rpx);
  display: flex;
  justify-content: space-around;
  gap: 20rpx;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15rpx;
}

.stat-icon {
  font-size: 40rpx;
  width: 60rpx;
  height: 60rpx;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4rpx 12rpx rgba(102, 126, 234, 0.3);
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-number {
  font-size: 32rpx;
  font-weight: bold;
  color: #2C3E50;
  margin-bottom: 5rpx;
}

.stat-label {
  font-size: 22rpx;
  color: #6c757d;
}

/* 功能按钮区域 */
.action-section {
  margin-bottom: 40rpx;
  animation: fadeInUp 1s ease-out 1.2s both;
}

.action-buttons {
  display: flex;
  gap: 30rpx;
}

.action-btn {
  padding: 25rpx 40rpx;
  border-radius: 30rpx;
  display: flex;
  align-items: center;
  gap: 15rpx;
  font-size: 28rpx;
  font-weight: bold;
  box-shadow: 0 8rpx 24rpx rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  min-width: 200rpx;
  justify-content: center;
}

.action-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 12rpx rgba(0, 0, 0, 0.2);
}

.action-btn.primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.action-btn.secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  color: white;
}

.btn-icon {
  font-size: 32rpx;
}

.btn-text {
  font-size: 28rpx;
}

/* 底部装饰 */
.bottom-decoration {
  display: flex;
  gap: 30rpx;
  animation: fadeInUp 1s ease-out 1.5s both;
}

.decoration-item {
  font-size: 40rpx;
  animation: decorationFloat 3s ease-in-out infinite;
}

.decoration-item:nth-child(1) { animation-delay: 0s; }
.decoration-item:nth-child(2) { animation-delay: 0.5s; }
.decoration-item:nth-child(3) { animation-delay: 1s; }
.decoration-item:nth-child(4) { animation-delay: 1.5s; }

/* 浮动粒子效果 */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  font-size: 30rpx;
  animation: particleFloat 6s ease-in-out infinite;
  opacity: 0.7;
}

.particle-1 { top: 20%; left: 10%; animation-delay: 0s; }
.particle-2 { top: 30%; right: 15%; animation-delay: 1s; }
.particle-3 { top: 60%; left: 20%; animation-delay: 2s; }
.particle-4 { top: 70%; right: 10%; animation-delay: 3s; }
.particle-5 { top: 40%; left: 50%; animation-delay: 4s; }
.particle-6 { top: 80%; right: 30%; animation-delay: 5s; }

/* 动画定义 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-50rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(100rpx);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8rpx 32rpx rgba(255, 215, 0, 0.4);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 12rpx 48rpx rgba(255, 215, 0, 0.6);
  }
}

@keyframes iconRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes ringExpand {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

@keyframes avatarGlow {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.3);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.8);
  }
}

@keyframes decorationFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10rpx);
  }
}

@keyframes particleFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20rpx) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translateY(-10rpx) rotate(180deg);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30rpx) rotate(270deg);
    opacity: 0.9;
  }
}

/* 个人中心功能区域 */
.profile-functions {
  margin: 40rpx 0;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.function-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20rpx;
}

.function-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16rpx;
  padding: 30rpx 20rpx;
  text-align: center;
  box-shadow: 0 6rpx 24rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10rpx);
  transition: all 0.3s ease;
  cursor: pointer;
}

.function-item:active {
  transform: scale(0.95);
  box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.15);
}

.function-icon {
  font-size: 48rpx;
  margin-bottom: 12rpx;
  display: block;
}

.function-text {
  font-size: 26rpx;
  color: #333;
  font-weight: 500;
}

/* 未登录提示 */
.login-prompt {
  margin: 40rpx 0;
  animation: slideInUp 0.8s ease-out 0.6s both;
}

.prompt-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20rpx;
  padding: 60rpx 40rpx;
  text-align: center;
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10rpx);
}

.prompt-icon {
  font-size: 80rpx;
  margin-bottom: 20rpx;
  display: block;
}

.prompt-text {
  font-size: 28rpx;
  color: #666;
  margin-bottom: 30rpx;
  display: block;
}

.login-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 50rpx;
  padding: 20rpx 40rpx;
  font-size: 28rpx;
  font-weight: bold;
  box-shadow: 0 6rpx 24rpx rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.login-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(102, 126, 234, 0.3);
}

.login-btn-text {
  color: white;
}

/* 退出登录按钮 */
.logout-section {
  margin: 40rpx 0;
  animation: slideInUp 0.8s ease-out 0.8s both;
}

.logout-btn {
  width: 100%;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  border-radius: 50rpx;
  padding: 24rpx;
  font-size: 28rpx;
  font-weight: bold;
  box-shadow: 0 6rpx 24rpx rgba(255, 107, 107, 0.3);
  transition: all 0.3s ease;
}

.logout-btn:active {
  transform: translateY(2rpx);
  box-shadow: 0 4rpx 16rpx rgba(255, 107, 107, 0.3);
}

.logout-text {
  color: white;
}

/* 响应式设计 */
@media (max-width: 750rpx) {
  .content-container {
    padding: 40rpx 30rpx;
  }
  
  .function-grid {
    grid-template-columns: 1fr;
    gap: 15rpx;
  }
  
  .function-item {
    padding: 25rpx 20rpx;
  }
  
  .function-icon {
    font-size: 40rpx;
  }
  
  .function-text {
    font-size: 24rpx;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 20rpx;
  }
  
  .action-btn {
    width: 100%;
  }
  
  .stats-card {
    flex-direction: column;
    gap: 30rpx;
  }
  
  .stat-item {
    justify-content: center;
  }
  
  .edit-profile-btn {
    width: 50rpx;
    height: 50rpx;
    top: 15rpx;
    right: 15rpx;
  }
  
  .edit-icon {
    font-size: 24rpx;
  }
} 

/* 个人资料隐藏状态 */
.profile-hidden {
  width: 100%;
  max-width: 600rpx;
  margin: 40rpx 0;
  animation: fadeInUp 0.8s ease-out;
}

.hidden-content {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20rpx);
  border-radius: 24rpx;
  padding: 60rpx 40rpx;
  text-align: center;
  border: 2rpx solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.1);
}

.hidden-icon {
  font-size: 80rpx;
  margin-bottom: 30rpx;
  opacity: 0.7;
  animation: hiddenPulse 2s ease-in-out infinite;
}

.hidden-text {
  display: block;
  font-size: 36rpx;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 20rpx;
  text-shadow: 0 2rpx 4rpx rgba(0, 0, 0, 0.3);
}

.hidden-subtext {
  display: block;
  font-size: 28rpx;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

@keyframes hiddenPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
} 